import request from '@/utils/request'

export function fetchProcessReturnBillList(params) {
  return request({
    url: '/api/bill/processReturnBill/getList',
    method: 'post',
    params
  })
}

export function createProcessReturnBill(params) {
  return request({
    url: '/api/bill/processReturnBill/add',
    method: 'post',
    params
  })
}

export function updateProcessReturnBill(data) {
  return request({
    url: '/api/bill/processReturnBill/update',
    method: 'post',
    data
  })
}

export function deleteProcessReturnBill(params) {
  return request({
    url: '/api/bill/processReturnBill/delete',
    method: 'post',
    params
  })
}

export function fetchSelectItemList() {
  return request({
    url: '/api/bill/processReturnBill/fetchSelectItem',
    method: 'post',
  })
}